package org.mall.modules.promotion.service;

import org.mall.common.aspect.annotation.InEnum;
import org.mall.common.constant.CommonStatusEnum;
import org.mall.modules.pojo.promotion.bo.BannerBO;
import org.mall.modules.pojo.promotion.bo.BannerPageBO;
import org.mall.modules.pojo.promotion.dto.BannerAddDTO;
import org.mall.modules.pojo.promotion.dto.BannerPageDTO;
import org.mall.modules.pojo.promotion.dto.BannerUpdateDTO;

import java.util.List;

public interface BannerService {

    List<BannerBO> getBannerListByStatusAndType(Integer status,Integer type);

    BannerPageBO getBannerPage(BannerPageDTO bannerPageDTO);

    BannerBO addBanner(String adminId, BannerAddDTO bannerAddDTO);

    Boolean updateBanner(String adminId, BannerUpdateDTO bannerUpdateDTO);

    Boolean updateBannerStatus(String adminId, Integer bannerId,
                               @InEnum(value = CommonStatusEnum.class, message = "修改状态必须是 {value}") Integer status);

    Boolean deleteBanner(String adminId, Integer bannerId);

}
